package com.example.his.api.mis.controller.form.checkupReport;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
public class SearchCheckupReportByPageForm {
  
  @Pattern(regexp = "^[\\u4e00-\\u9fa5]{1,10}$", message = "name格式错误")
  private String name;
  
  @Pattern(regexp = "^1[1-9]\\d{9}$", message = "tel格式错误")
  private String tel;
  
  @Pattern(regexp = "^[0-9a-zA-Z]{10,24}$", message = "waybillCode内容错误")
  private String waybillCode;
  
  @Range(min = 1, max = 4, message = "status取值范围错误")
  private Integer status;
  
  @NotNull(message = "page不能为空")
  @Min(value = 1, message = "page不能小于1")
  private Integer page;
  
  @NotNull(message = "page不能为空")
  @Range(min = 10, max = 100, message = "length取值范围10-100")
  private Integer length;
}
